package Structural_design_pattern.Decorator_Pattern.Example2;

public class Client {
    public static void main(String[] args) {
        String password = "sunnyLiu";
        String cpassword;

        Cipher c1,c2,c3;

        c1 = new SimpleCipher();
        cpassword = c1.Encrypt(password);
        System.out.println(cpassword);
        System.out.println("-----------------------------");

        c2 = new ComplexCipher(c1);
        cpassword = c2.Encrypt(password);
        System.out.println(cpassword);
        System.out.println("-----------------------------");

        c3 = new AdvancedCipher(c2);
        cpassword = c3.Encrypt(password);
        System.out.println(cpassword);
        System.out.println("-----------------------------");
    }


}
